import random

ran=random.random()
print(ran)

print(random.randint(1,3))

print(random.randrange(1,10,3))

list= ['阿天','阿强','强强']
print(list)

print(random.choice(list))

random.shuffle(list)
print(list)


# 随机生成8个包含数字、大小写的字符串
def genRandomChar():
    res=str()
    for i in range(8):
        d= str(random.randint(0,9))
        c1 = chr(random.randint(65,90))
        c2 =chr(random.randint(97,122))
        res=res+random.choice([d,c1,c2])
    return res


if __name__ == '__main__':
   print(genRandomChar())
